package com.mall.application.entity.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @className: com.mall.application.module.param-> ApplicationRegistParam
 * @description: 应用注册参数
 * @author: wuyijie
 * @createDate: 2021/6/8 22:31
 */
@Data
@ApiModel(value = "Application添加参数", description = "")
@AllArgsConstructor
@NoArgsConstructor
public class ApplicationAddParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "应用名称", required = true)
    @NotBlank(message = "应用名称不能为空")
    private String name;

    @ApiModelProperty(value = "应用的联系email", required = true)
    @NotBlank(message = "应用的联系email不能为空")
    @Email(message = "必须是合法邮箱")
    private String contactEmail;
}
